package ppd;



/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.concurrent.BrokenBarrierException;

/**
 *
 * @author bastien
 */
public interface Table extends Remote{

    public int nombreTableVoisines() throws RemoteException;

    public Buveur buveurAssis() throws RemoteException;
  
    public void attendre() throws InterruptedException, BrokenBarrierException, RemoteException;

    public ArrayList<Table> tablesVoisines() throws RemoteException;

    public void servir(Barman t) throws RemoteException;
            
    public void attendre(String ipCentrale) throws RemoteException;

}
